<div id="main_container">

	{$oZoneHeader}
    
    <div class="main_content">
        {$oZoneTopMenu}
        <div class="center_content">  
            <div class="left_content">
                {$oZoneLeftMenu}
            </div>


          <form action="{jurl 'formule~BoFormule:sauvegarder'}" method="POST">
           <input type="hidden" name="id" value="{*$formule->id*}" />

            <div class="right_content">
        
                <h2>Liste des formules</h2> 
                    
                    
                 <table id="rounded-corner" summary="2007 Major IT Companies' Profit">
                    <thead>
                        <tr>
                            
                            <th scope="col"  class="rounded-company" align="left">Titre</th>
                            <!-- <th scope="col" width="350" scope="col" class="rounded" >Descriptif</th>-->
                            <th scope="col"  class="rounded" align="left">Prix</th>
                            <th scope="col" class="rounded" align="left">Date d&eacute;but</th>
                            <th scope="col" class="rounded">Date fin</th>
                            <th scope="col"  class="rounded">Etat</th>
                            <th scope="col"  class="rounded">Editer</th>
                            <th scope="col"  class="rounded">Supprimer</th>
						
                        </tr>
                    </thead>
                    <tbody>
		             {if sizeof($liste)}
                     {foreach $liste as $formule}
                        <tr >
                           	<td>{$formule->titre}</td>
                            <!-- <td><div style="width:250px; overflow:hidden;">{*$formule->content*}</div></td>-->
                            <td>{$formule->prix}</td>
                            <td>{$formule->date_debut|jdatetime:'db_date':'lang_date'}</td>
                            <td>{$formule->date_fin|jdatetime:'db_date':'lang_date'}</td>
							<td class="ico_">{if $formule->status == '1'} {image $j_basepath.'design/back/img/ico_activer.gif',array('title'=>'Activer','alt'=>'Activer')}
							{else}
							{image $j_basepath.'design/back/img/ico_desactiver.gif',array('title'=>'Désactiver','alt'=>'Désactiver')}
							{/if}</td>
                            <td align="center"><a href="{jurl 'formule~BoFormule:editer',array('id'=>$formule->id)}">{image $j_basepath.'design/back/img/user_edit.png',array('title'=>'','alt'=>'','border'=>0)}
							</a></td>
                            <td align="center">
								{if $formule->isUsed}
								<a href="{jurl 'formule~BoFormule:supprimer', array('id'=>$formule->id)}" class="ask">
									{image $j_basepath.'design/back/img/trash.png',array('title'=>'','alt'=>'','border'=>0)}
								</a>
								{else}
									{image $j_basepath.'design/back/img/trash.png',array('title'=>'','alt'=>'','border'=>0)}
								{/if}
							</td>
						
                        </tr>
                     {/foreach}
                     {/if}
                    </tbody>
                </table>

               <a href="{jurl 'formule~BoFormule:editer'}"" class="bt_green"><span class="bt_green_lft"></span><strong>Ajouter</strong><span class="bt_green_r"></span></a>
     
             {if $recordCount > $nbitemparpage}
                <div class="pagination">
                    <p>{pagelinks 'formule~BoFormule:index', array(),$recordCount ,$page, $nbitemparpage, "offset", $properties}</p>
				</div>
             {/if}
                    
            </div><!-- end of right content-->
		 </form>
        </div>   <!--end of center content -->               

        <div class="clear"></div>
    </div> <!--end of main content-->
	
    
    <div class="footer">
    </div>

</div>		
